package com.cl.core.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author liddhappy
 * @description 平台用户
 * @createTime 2022/12/4 9:51
 */
@Data
@ApiModel(value="平台用户", description="用户")
public class PlatformUsers extends PlatformBaseEntry {
    private static final long serialVersionUID = 1L;

    @TableId(value = "userId",type = IdType.AUTO)
    @ApiModelProperty(value = "ID", required = true)
    private Long userId;

    @ApiModelProperty(value = "用户名", required = true)
    private String userName;

    @ApiModelProperty(value = "md5密码", required = true)
    private String password;

    @ApiModelProperty(value = "密码盐", required = true)
    private String salt;

    @ApiModelProperty(value = "用户角色", required = true)
    private Long roleId;

    @ApiModelProperty(value = "创建时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /**
     * 用户状态（0停用 1正常）
     */
    @ApiModelProperty(value = "状态", required = true)
    private Integer state;

}
